package com.teemo.dp.abstractfactory;

import com.teemo.dp.abstractfactory.computer.Computer;
import com.teemo.dp.abstractfactory.factory.ComputerFactory;
import com.teemo.dp.abstractfactory.factory.DesktopComputerFactory;
import com.teemo.dp.abstractfactory.mouse.Mouse;

/**
 * @author Teemo
 */
public class Demo {
    public static void main(String[] args) {
        ComputerFactory factory = new DesktopComputerFactory();
        Computer computer = factory.createComputer();
        Mouse mouse = factory.createMouse();
        System.out.println(computer);
        System.out.println(mouse);
    }
}
